<template>
<div class="homecom">
<!-- 3.调用子组件-头部组件 -->
<HomeHeader/>
<!-- 中间区域 -->
<main>
  <!-- 3.调用子组件-左侧导航栏 -->
  <HomeSlide/>

  <!-- 右侧：根据菜单链接进行路由的渲染 -->
  <aside>
    <router-view></router-view>
  </aside>
</main>


</div>
</template>

<script>
// 1.导入子组件
import HomeHeader from './home/HomeHeader.vue'
import HomeSlide from './home/HomeSlide.vue'

export default {
    name : 'HomeCom',
    // 2.注册子组件
    components:{
      HomeHeader,HomeSlide
    },

    data(){
        return{
        }
    },
    // methods:{
    //   tui(){
    //     sessionStorage.clear();

    //     this.$router.push('/login')
    //   },
    // }
}
</script>

<style scoped>
.homecom{
  width: 100%;
  height: 98vh;
  overflow: hidden;
}
.homecom main{
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
}
.homecom main aside{
  width: 80%;
  height: 100%;

}
/* .contain{
    width: 100%;
    overflow: hidden;

    display: flex;
}
.contain aside{
    width: 200px;
    height: 900px;
    background-color: #f87c20;
    
}
.contain p{
    color: #ffffff;
}
.contain aside .router-link-active{
    background-color: aliceblue;
    color: #393945;
    font-weight: 800;
}

.contain aside .router-link{
  margin-left: 2%;
}
.contain article{
    flex: 1;
    overflow: hidden;
    background-color: pink;
} */
</style>